<?php get_header(); ?>

<?php if (have_posts()) : ?>
  
	<?php while (have_posts()) : the_post(); ?>

	<!-- post -->
	<div <?php post_class('post'); ?> id="post-<?php the_ID(); ?>">
		<h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
		<div class="post-text">
		<?php
		the_content("Read the full article &raquo;");
		wp_link_pages('before=<div class="post-pages">Pages:&after=</div>&next_or_number=number&pagelink=<span>%</span>');
		?>
		</div>
		<div class="post-meta">
			<div class="row">
				<?php if ('open' == $post->comment_status) { comments_popup_link('No Comments', '1 Comment', '% Comments', 'post-comments'); } ?>
				<?php edit_post_link('Edit Post', '', ''); ?>
			</div>
		</div>
	</div>
	<!--/post -->

	<?php comments_template(); ?>
		
	<?php endwhile; ?>

	<?php else : ?>

	<div class="post">
		<h1 class="post-title">Not Found</h1>
		<div class="post-text">
			<p>The page you were looking for could not be found.</p>
		</div>
	</div>
		
<?php endif; ?>

<?php get_footer(); ?>